{// 引入标签库 }
<tagLib name="html" />
<include file="Public:header" />
<php>

	function image($image){
		return "<img src='".$image."' style='height:35px;width:35px;'/>";
	}

</php>

<script>

	//编辑跳转
	function Goods_item(id)
	{
		location.href = ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=Goods_item&id="+id;
	}
</script>
<div class="main">
<div class="main_title_list"><div class="list-line-ico"></div>商品列表</div>
    <div class="search_row">
        <form name="search" action="__APP__" method="get">
            商品名称：<input type="text" class="textbox" name="name" value="{:trim($_REQUEST['name'])}" />
        </select>
            <input type="hidden" value="Goods" name="m" />
            <input type="hidden" value="index" name="a" />
            <input type="submit" class="button" value="{%SEARCH}" />
        </form>
    </div>
	<html:list
			id="dataTable"
			style="dataTable"
			name="user"
			action="true"
			datasource="list"
			show="id:{%ID}
			,name:商品名称:edit
			,imgs|image:商品主图片
			,imgs_details|image:商品详情图片
			,price:商品价格(人民币)
			,pai_diamonds:商品直播价格(钻石)
			,kd_cost:快递费用
			,score:经验
			,inventory:库存
			,sales:总销售量
			,number:售卖人数
			,is_effect|get_is_effect:{%IS_EFFECT}"
			actionlist="edit:{%EDIT}" />

<div class="blank5"></div>
<div class="page">{$page}</div>
</div>
<include file="Public:footer" />